﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVC3DEMO.Models.BS
{
    public class BS_Post
    {
        private SQLHeperDataContext sqlheper;
        public BS_Post()
        {
            sqlheper = new SQLHeperDataContext();
        }
        public List<Post> getListPost()
        {
            return (from c in sqlheper.Posts orderby c.Priority ascending select c).ToList();
        }
    }
}